/**
 * Created by wry on 2015/1/13.
 */

module.exports = function (app) {
    var dailyReporting = require('../../controllers/BI/BI-dailyReporting-controller')

    // ============= 小区日报 =============

    // Main + Stats
    app.get('/rest/' + RESTFullServiceVersion + '/BI/reports/getCommunityMainStatsReport/:community/:date', dailyReporting.getCommunityMainStatsReport);

    // Retention
    app.get('/rest/' + RESTFullServiceVersion + '/BI/reports/getIntervalRetentionByComm/:interval/:community/:startDate/:endDate', dailyReporting.getIntervalRetentionByCommReport);
    //app.get('/rest/' + RESTFullServiceVersion + '/BI/reports/getRetentionByComm/:community/:interval', dailyReporting.getRetentionByCommReport);
    //app.get('/rest/' + RESTFullServiceVersion + '/BI/reports/getRetentionByCommAndBatch/:community/:userBatchDate/:interval', dailyReporting.getRetentionByCommAndBatchReport);

    // Dau
    app.get('/rest/' + RESTFullServiceVersion + '/BI/reports/getCommunityDauStatsReport/:community/:date', dailyReporting.getCommunityDauStatsReport);

};